package com.booking.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Qikai.Lin
 * @date 2023/4/24
 */
@Getter
@AllArgsConstructor
public enum RoomCheckStatusEnums {
    NOT_CHECK("NOT_CHECK", "未入住"),
    CHECKED("CHECKED", "已入住"),
    ;
    private final String status;
    private final String msg;
    public static String getMsgByStatus(String status) {
        for (RoomCheckStatusEnums enums : RoomCheckStatusEnums.values()) {
            if (enums.getStatus().equals(status)) {
                return enums.getMsg();
            }
        }
        return null;
    }
}
